<?php
/**
 * Created by : PhpStorm
 * User: DuFei
 * Date: 2020/8/3
 * Time: 14:20
 */

namespace app\models\response;




use app\models\BaseDto;
use app\models\UserDto;

class RespLogin extends BaseDto
{
    private $Authorization;

    /**
     * @var UserDto
     */
    private $userInfo;

    /**
     * @return mixed
     */
    public function getAuthorization()
    {
        return $this->Authorization;
    }

    /**
     * @param mixed $Authorization
     */
    public function setAuthorization($Authorization)
    {
        $this->Authorization = $Authorization;
    }

    /**
     * @return UserDto
     */
    public function getUserInfo()
    {
        return $this->userInfo;
    }

    /**
     * @param UserDto $userInfo
     */
    public function setUserInfo($userInfo)
    {
        $this->userInfo = $userInfo;
    }





    /**
     * @return array|mixed|void
     */
    public function jsonSerialize()
    {
       return [
           "Authorization"=>$this->getAuthorization(),
           "userInfo"=>$this->getUserInfo()
       ];
    }


}
